﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JoinPartyInspection.aspx.cs" Inherits="JoinParty.admin.FlowStep.JoinPartyInspection" %>

<%@ Register Src="../Control/UserMessage.ascx" TagName="UserMessage" TagPrefix="UC" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../../Resource/js/jquery/jquery.min.js"></script>
    <script type="text/javascript">
</script>
    <style type="text/css">
        .lbColor {
            color: red;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:HiddenField runat="server" ID="hdReadOnly" Value="0" />
        <asp:HiddenField runat="server" ID="hdAppLoginID" />
        <asp:HiddenField runat="server" ID="hdAppID" />
        <asp:HiddenField runat="server" ID="hdCurrentStandID" />
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server" Layout="Fit">
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" ToolbarAlign="Center">
                    <Items>
                        <f:Button ID="btnSaveClose" ValidateForms="SimpleForm1" Icon="SystemSaveClose" OnClick="btnSaveClose_Click"
                            runat="server" Text="保存并关闭">
                        </f:Button>
                        <f:Button ID="btnSubmit" runat="server" CssClass="marginr" OnClick="btnSubmit_Click" Icon="Tick"
                            Text="提交">
                        </f:Button>
                        <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                            Text="关闭">
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Items>
                <f:SimpleForm ID="sform" runat="server" ShowBorder="false" ShowHeader="false" BodyPadding="10px" Title="SimpleForm" AutoScroll="true">
                    <Items>
                        <f:ContentPanel ID="cPanel" runat="server" ShowBorder="false" ShowHeader="false" BodyPadding="5px">
                            <div>
                                <UC:UserMessage ID="UserM" runat="server" />
                            </div>
                        </f:ContentPanel>
                        <f:Grid ID="GridThink" BoxFlex="1" runat="server" ShowBorder="true" ShowHeader="false" EnableCheckBoxSelect="false"
                            DataKeyNames="ID" AllowSorting="false" ShowPagingMessage="false"
                            SortDirection="" AllowPaging="true" Width="750"
                            IsDatabasePaging="true" OnRowCommand="GridThink_RowCommand" Height="200">
                            <Toolbars>
                                <f:Toolbar ID="Toolbar3" runat="server">
                                    <Items>
                                        <f:ToolbarFill ID="ToolbarFill2" runat="server">
                                        </f:ToolbarFill>
                                        <f:Button ID="btnAddThink" runat="server" Icon="Add" EnablePostBack="false" Text="新增">
                                        </f:Button>
                                    </Items>
                                </f:Toolbar>
                            </Toolbars>
                            <Columns>
                                <f:RowNumberField></f:RowNumberField>
                                <f:BoundField DataField="Title" ExpandUnusedSpace="true" HeaderText="标题"></f:BoundField>
                                <f:BoundField DataField="BranchName" Width="200px" HeaderText="所属组织"></f:BoundField>
                                <f:BoundField DataField="UserName" Width="120px" HeaderText="汇报人"></f:BoundField>
                                <f:BoundField DataField="ReportTime" Width="120px" HeaderText="汇报日期" DataFormatString="{0:yyyy-MM-dd}"></f:BoundField>

                                <f:LinkButtonField ColumnID="deleteField" TextAlign="Center" Icon="Delete"
                                    ToolTip="删除" ConfirmText="确定删除此数据？" ConfirmTarget="Top" CommandName="Delete" Width="50px">
                                </f:LinkButtonField>
                            </Columns>
                        </f:Grid>

                        <%--<f:HtmlEditor ID="heCultureMeasures" runat="server" Label="培养措施" LabelAlign="right" Height="100" Width="750"></f:HtmlEditor>--%>
                        <f:Label ID="lbCultureMeasures" Label="培养措施" runat="server" LabelAlign="left"></f:Label>
                        <f:ContentPanel ID="cpCultureMeasures" runat="server" ShowBorder="false" ShowHeader="false" Title="baad">
                            <script type="text/plain" name="editorCultureMeasures" id="editorCultureMeasures"></script>
                        </f:ContentPanel>

                        <f:ContentPanel ID="cpanel1" runat="server" ShowBorder="false" ShowHeader="false" BodyPadding="5px">
                            <div style="margin-left: 50px">
                                <table>
                                    <tr>
                                        <td>
                                            <f:LinkButton ID="lbtOne" runat="server" Text="半年考察情况" EnablePostBack="false" ShowLabel="false"></f:LinkButton>
                                        </td>
                                        <td>
                                            <f:LinkButton ID="lbtTwo" runat="server" Text="半年考察情况" EnablePostBack="false" ShowLabel="false"></f:LinkButton>
                                        </td>
                                        <td>
                                            <f:LinkButton ID="lbtThree" runat="server" Text="半年考察情况" EnablePostBack="false" ShowLabel="false"></f:LinkButton>
                                        </td>
                                        <td>
                                            <f:LinkButton ID="lbtFour" runat="server" Text="半年考察情况" EnablePostBack="false" ShowLabel="false"></f:LinkButton>
                                        </td>
                                        <td>
                                            <f:LinkButton ID="lbtFive" runat="server" Text="半年考察情况" EnablePostBack="false" ShowLabel="false"></f:LinkButton>
                                        </td>
                                        <td>
                                            <f:LinkButton ID="lbtSix" runat="server" Text="半年考察情况" EnablePostBack="false" ShowLabel="false"></f:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </f:ContentPanel>
                        <%--<f:HtmlEditor ID="heBranchOpinion" runat="server" Label="支部意见" LabelAlign="right" Height="100" Width="750"></f:HtmlEditor>--%>
                        <f:Label ID="lbBranchOpinion" Label="支部意见" runat="server" LabelAlign="left"></f:Label>
                        <f:ContentPanel ID="cpBranchOpinion" runat="server" ShowBorder="false" ShowHeader="false" Title="baad">
                            <script type="text/plain" name="editorBranchOpinion" id="editorBranchOpinion"></script>
                        </f:ContentPanel>

                        <%--<f:HtmlEditor ID="heRemark" runat="server" Label="备注" LabelAlign="right" Height="100" Width="750"></f:HtmlEditor>--%>
                        <f:Label ID="lbRemark" Label="备注" runat="server" LabelAlign="left"></f:Label>
                        <f:ContentPanel ID="cpRemark" runat="server" ShowBorder="false" ShowHeader="false" Title="baad">
                            <script type="text/plain" name="editorRemark" id="editorRemark"></script>
                        </f:ContentPanel>
                    </Items>
                </f:SimpleForm>
            </Items>
        </f:Panel>

        <f:Window ID="WAddThink" Title="思想汇报" CloseAction="Hide" runat="server" IsModal="true"
            Hidden="true" Target="Top" EnableResize="true" EnableMaximize="true"
            EnableIFrame="true" IFrameUrl="about:blank" Width="750px" Height="450px" OnClose="WAddThink_Close">
        </f:Window>
        <f:Window ID="WPartyGroup" Title="半年考察情况" Hidden="true" CloseAction="Hide" runat="server" IsModal="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="600px"
            Height="350px" OnClose="WAddThink_Close">
        </f:Window>
    </form>
</body>
<script src="../../../../Resource/js/jquery/jquery.min.js"></script>
<script src="../../../../Resource/ueditor/ueditor.config.js"></script>
<script src="../../../../Resource/ueditor/ueditor.all.min.js"></script>

<script>
    var containerClientID = '<%= sform.ClientID %>';
    var editor1, editor2, editor3;
    var config = {
        initialFrameWidth: '100%',
        initialFrameHeight: '400px',
        enableAutoSave: false,
        saveInterval: 100000,
        elementPathEnabled: false,
        autoHeightEnabled: false,
        autoFloatEnabled: false,
        onready: function () {
        }
    };
    F.ready(function () {
        config.onready = function () {
            // 重新布局外部容器
            doLayout();
            updateEditor(editor1, '<%= this.CultureMeasuresContent%>');
        }
        editor1 = UE.getEditor('editorCultureMeasures', config);

        config.onready = function () {
            // 重新布局外部容器
            doLayout();
            updateEditor(editor2, '<%= this.BranchOpinionContent%>');
        }
        editor2 = UE.getEditor('editorBranchOpinion', config);

        config.onready = function () {
            // 重新布局外部容器
            doLayout();
            updateEditor(editor3, '<%= this.RemarkContent%>');
        }
        editor3 = UE.getEditor('editorRemark', config);

    });

    // 更新编辑器内容
    function updateEditor(editor, content) {
        if (editor && editor.isReady) {
            editor.setContent(content);
        }
    }

    function doLayout() {
        if ((editor1 && editor1.isReady) && (editor2 && editor2.isReady) && (editor3 && editor3.isReady)) {
            // 重新布局外部容器
            F(containerClientID).doLayout();
        }
    }
</script>
</html>
